#define _CRT_SECURE_NO_WARNINGS
#pragma warning(disable:6031)
#include<iostream>
using namespace std;
class Date
{
public:
	Date(int year, int month, int day)
		:_year(year)
		, _month(month)
		, _day(day)
		,_n(1)
		,_p((int*)malloc(4))
	{
		_year = 2021;
	}
	void Print()
	{
		cout << _year << "  " << _month << "  " << _day << endl;;
	}
private:
	int _year;
	int _month;
	int _day;
	const int _n;
	int* _p;
};
int main()
{
	Date d1(2020, 9, 4);
	d1.Print();
	Date d2 = { 2024,5,11 };
	d2.Print();
	return 0;
}